package com.lzh.rocblogbackend.mapper;

import com.lzh.rocblogbackend.model.Blog;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BlogMapper {
    public List<Blog> getBlog();
    public int postBlog(Blog blog);
    public Blog getById(int id);
    public int deleteById(int id);
    public int addView(long id,long num);
    public List<Blog> getByType(String type);
}
